package com.ctgu.examonline.dao;


import com.ctgu.examonline.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StudentDao {
    /*保存*/
    void save(Student student);

    /*通过学号密码查询 -- 登录*/
    Student findByNoAndPassword(@Param("stu_no") Integer stu_no, @Param("stu_pwd") String stu_pwd);

    List<Student> selectAllStudent();

    List<Student> getAllStudent(@Param("stu_name") String stu_name, @Param("pageStart") Integer pageStart, @Param("pageSize") Integer pageSize);

    Integer getStudentCounts(@Param("stu_name") String stu_name);
}
